package com.forum.bean;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import org.springframework.stereotype.Component;

import java.time.*;
@Component
public class UserBans {
    @TableId(type = IdType.AUTO)
    private Integer id; // 记录ID
    private Integer userId; // 被封禁用户ID
    private Integer adminId; // 操作管理员ID
    private String reason; // 封禁原因
    private LocalDateTime bannedAt; // 封禁时间
    private LocalDateTime unbannedAt; // 解封时间（可为空）

    public Integer getId() { return id; }
    public void setId(Integer id) { this.id = id; }
    public Integer getUserId() { return userId; }
    public void setUserId(Integer userId) { this.userId = userId; }
    public Integer getAdminId() { return adminId; }
    public void setAdminId(Integer adminId) { this.adminId = adminId; }
    public String getReason() { return reason; }
    public void setReason(String reason) { this.reason = reason; }
    public LocalDateTime getBannedAt() { return bannedAt; }
    public void setBannedAt(LocalDateTime bannedAt) { this.bannedAt = bannedAt; }
    public LocalDateTime getUnbannedAt() { return unbannedAt; }
    public void setUnbannedAt(LocalDateTime unbannedAt) { this.unbannedAt = unbannedAt; }
}
